package com.lzx.lizhenxing.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzx.lizhenxing.user.model.UserOrderModel;
import com.lzx.lizhenxing.user.vo.OrderPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户订单表(UserOrder)表数据库访问层
 */
public interface UserOrderDao extends BaseMapper<UserOrderModel> {

    /**
     * 根据快递的id查询该快递是否已经创建过订单
     * @param expressDeliveryId
     */
    UserOrderModel selectByExpressDeliveryId(@Param("expressDeliveryId") Long expressDeliveryId);

    /**
     * 查询某个人的全部快递
     * @param uid
     */
    List<OrderPageVo> selectPageAll(@Param("uid") Long uid, @Param("billNum") String billNum, @Param("courierCompany") String courierCompany);
}

